package com.Proxydemo;

import java.lang.reflect.Proxy;

/**
 * @Description
 * @Author
 * @Date 2020/4/15 21:31
 **/
public class Test {
    public static void main(String[] args) {
        HelloImpl c = new HelloImpl();
        DynamicProxyHandler proxyHandler = new DynamicProxyHandler(c);
        Hello o = (Hello) proxyHandler.newProxyInstance();
        System.out.println(o.getClass().getName());
        o.doSonthing();
    }
}
